//
//  WEIBODetailCell.m
//  OneWeiBo
//
//  Created on 21.
//   
//

#import "WEIBODetailCell.h"
#import "WEIBOStatusTopView.h"
#import "WEIBORetweetStatusView.h"
#import "WEIBODetailViewController.h"
#import "WEIBODetailCellframe.h"
#import "WEIBOStatus.h"
#import "WEIBODetailTopView.h"


@interface WEIBODetailCell()
@property (nonatomic, strong) WEIBODetailCellframe *statusFrame;
@end
@implementation WEIBODetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self.topView removeFromSuperview];
        // 选中cell 的背景
        self.selectedBackgroundView = [[UIView alloc]init];
        self.backgroundColor = [UIColor clearColor];
        
        // 添加顶部view
        WEIBODetailTopView *topView = [[WEIBODetailTopView alloc]init];
        [self.contentView addSubview:topView];
        self.topView = topView;

    }
    return self;
}

- (void)setStatusFrame:(WEIBODetailCellframe *)statusFrame
{
    [super setStatusFrame:statusFrame];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
